public class LC789M {
    public boolean escapeGhosts(int[][] ghosts, int[] target) {
        int n=ghosts.length;
        for (int i = 0; i < n; i++) {
            if (!judge(ghosts[i][0],ghosts[i][1],target)){
                return false;
            }
        }
        return true;
    }

    public boolean judge(int x,int y,int[] target){
        return (Math.abs(target[0])+Math.abs(target[1]))<(Math.abs(x-target[0])+Math.abs(y-target[1]));
    }

}
